<?php
    $curSegment = $this->uri->segment(1);
    if(is_null($curSegment) || empty($curSegment)){
        $curSegment='home';
    } elseif (in_array($curSegment,array('exploration','watchlist','backtest'))){
        $curSegment='tools';
    } elseif(in_array($curSegment, array('manage','user'))) {
        $curSegment='manage';
    }
    
?>
<?php if ($isLoged): ?>
<div class="menu_nav">
    <ul>
      <li><a class="<?php echo $curSegment=='home'?'menu-selected':''; ?>" href="<?php echo base_url(); ?>">Home</a></li>
      <li class="has_sb_menu_nav">
        <a class="<?php echo $curSegment=='tools'?'menu-selected':''; ?>" href="#">Tools</a>
        <ul class="sb_menu_nav" style="">
            <li class="last"><a href="<?php echo base_url(array('banhang')); ?>" title="BanHang">Ban Hang</a></li>
        </ul>
      </li>
      <li class="has_sb_menu_nav last">
        <a class="<?php echo $curSegment=='manage'?'menu-selected':''; ?>" href="#">Manage</a>
        <ul class="sb_menu_nav">
            <li class="last"><a href="<?php echo base_url(array('manager','manager')); ?>" title="Nhap Hang">Nhap Hang</a></li>
        </ul>
      </li>
    </ul>
</div>	
<?php endif ?>
